package com.smxy.mall.service.impl;

import com.smxy.mall.dao.MenuDao;
import com.smxy.mall.entity.Menu;
import com.smxy.mall.service.MenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {
    @Resource
    private MenuDao menuDao;

    @Override
    public List<Menu> list() {
        return menuDao.findAll();
    }
}
